package org.example.postgraduateproject.Dao;

import org.example.postgraduateproject.entity.Question;

import java.util.List;

/**
 * @author wu
 * @date 2025-05-28
 */

public interface QuestionDao {
    List<Question> selectAllQuestions();
    Question selectQuestionById(int questionId);
    List<Question> selectQuestionsByUserId(int userId);
    int insertQuestion(Question question);
    int updateQuestion(Question question);
    int deleteQuestion(int questionId);
}